﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation = "false"  CodeBehind="QueryUsers.aspx.cs" Inherits="RantopadService.query.QueryUsers" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
    <style type="text/css">
body {font-family: Arial, Helvetica, sans-serif; font-size:12px; text-align:center;background-color:#0e1115;color:white }
        .auto-style1 {
            width: 459px;
        }
    </style>
</head>
<body runat="server" >
    <form id="form1" runat="server" style="text-align: center;width:inherit" >
        <center>
        <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
                <tr>
                    <td colspan="2" align="middle" valign="bottom">

                        <asp:TextBox ID="TextWhereLike" runat="server"></asp:TextBox>
                        <asp:DropDownList ID="onLine" runat="server">
                            <asp:ListItem Value="">全部</asp:ListItem>
                            <asp:ListItem Value="1">在线</asp:ListItem>
                            <asp:ListItem Value="0">离线</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Button ID="Search" runat="server" Text="搜索" OnClick="Search_Click" />
                        <asp:Label ID="LabelMsg" runat="server" ForeColor="White"  Text=""></asp:Label>
                        <asp:Button ID="OutToExcel" runat="server" Text="导出成excel" OnClick="OutToExcel_Click" />

                        

                            <asp:GridView ID="GridView1" AllowPaging="True" runat="server" Width="100%" DataKeyNames="USER_NAME" Font-Size="12px"
                                OnPageIndexChanging="GridView1_PageIndexChanging" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnSorting="GridView1_Sorting" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="USER_NAME" HeaderText="昵称"  />
                                    <asp:BoundField DataField="EMAIL" HeaderText="邮箱"  />
                                    <asp:BoundField DataField="ONLINE" HeaderText="是否在线"  />
                                    <asp:ButtonField HeaderText="修改"  Text="修改" commandname="EditUser"  />
                                    <asp:CommandField HeaderText="删除" ShowDeleteButton="true"  />
                                    <asp:ButtonField Text="发送消息" CommandName="SendMessage"  />
                                    <%--<asp:CommandField HeaderText="删除" ShowEditButton="true"  ShowDeleteButton="true" HeaderStyle-Width="100"/>--%>
                                </Columns>

                                <AlternatingRowStyle BackColor="White" />
                                <FooterStyle BackColor="#CCCC99" />
                                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                <RowStyle BackColor="#F7F7DE" />
                                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                                <SortedAscendingHeaderStyle BackColor="#848384" />
                                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                                <SortedDescendingHeaderStyle BackColor="#575357" />
                            </asp:GridView>
                        

                        <br />
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="邮箱:" ForeColor="White" runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="UserEmail" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="昵称:" ForeColor="White"  runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="密码:" ForeColor="White"  runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="Psd" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="确认密码:" ForeColor="White"  runat="server" ></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="rPsd" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Button ID="ButAddOrUpdate" Text="添加" runat="server" OnClick="ButAddOrUpdate_Click" ToolTip="点击“清空”按钮后会恢复为“添加”功能" />
                    </td>
                    <td valign="bottom" align="left">
                        <asp:Button ID="ButClear" Text="清空" runat="server" OnClick="ButClear_Click" />
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1"></td>
                    <td valign="bottom" align="left">
                        <asp:Label ID="Msg" runat="server" Width="117px" Height="26px"></asp:Label>
                    </td>
                </tr>
            </tbody>
        </table>
        </center>

    </form>


</body>
</html>
